package com.qianyu.project.mapper;

import com.qianyu.project.entity.DeviceMaintainList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 设备维保明细 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface DeviceMaintainListMapper extends BaseMapper<DeviceMaintainList> {

    @Select("select * from device_maintain_list drl,device_maintain drp,material_info mi where drl.d_plan_id = drp.id and drl.material_id = mi.id and drp.id=#{value}")
    List<DeviceMaintainList> selectMaterialInfos(String id);
}
